import { get, post, put, del } from '@/js/api/dataSource'
export default {
	workshop: {
		// 机构树
		orginTree () {
			return get({ url: '/archive/carRoom/orginTree' })
		},
		findCarRoomListAll () {
			return get({ url: '/archive/carRoom/findCarRoomListAll' })
		},
		findListAll () {
			return get({ url: '/archive/carRoom/findListAll' })
		},
		findCarRoomTypeListAll () {
			return get({ url: '/archive/carRoomType/findCarRoomTypeListAll' })
		},
		findAllWorkShops () {
			return post({ url: '/archive/carRoom/pageQuery', responseComplete: true })
		},
		findFactoryList () {
			return get({ url: '/archive/factory/findFactoryListAll' })
		},
		// 启用停用集团
		updateEnable () {
			return put({ url: '/archive/carRoom/updateEnable', responseComplete: true })
		},
		getNextCode () {
			return get({ url: '/archive/carRoom/getNextCode' })
		},
		// 新建保存车间信息
		saveOrUpdate () {
			return post({ url: '/archive/carRoom/saveOrUpdate', responseComplete: true })
		},
		// 根据id获取车间信息
		findGroupDetailById () {
			return get({ url: '/archive/carRoom/findDetailByParam' })
		},
		// 批量删除集团
		deleteWorkShopMulity () {
			return del({ url: '/archive/carRoom/batchDelete', responseComplete: true })
		}
	}
}
